﻿SeadragonJSSpring = function(initialValue) {
    /// <summary>Creates a spring with the given initial current and target value.</summary>
    /// <param name="initialValue"></param>
    /// <returns type="Object"></returns>
}

SeadragonJSSpring.prototype =
{
    getCurrent: function() {
        /// <summary>Returns the current value of the spring.</summary>
        /// <returns type="Number"></returns>
    },

    getTarget: function() {
        /// <summary>Returns the target value of the spring./summary>
        /// <returns type="Number"></returns>
    },

    resetTo: function(target) {
        /// <summary>Sets both the current and target values of the spring to the given value.</summary>
        /// <param name="target"></param>
    },

    shiftBy: function(delta) {
        /// <summary>Shifts both the current and target values of the spring by the given amount.</summary>
        /// <param name="delta"></param>
    },

    springTo: function(target) {
        /// <summary>Sets the target value of the spring to the given value.</summary>
        /// <param name="target"></param>
    },

    update: function(target) {
        /// <summary>Updates the current value of the spring to move closer towards the target value.</summary>
    }
}
